﻿using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;
//using System.Web.DynamicData;
using OA.Model;
using OA.Model.MyAttribute;
using OA.Core;
using System;
using System.Collections.Generic;

namespace OA.Model
{
    [Table("MyFile")]
    //[TableName("我的文件")]
    public class MyFile : BaseInfo
    {
        public int Status { get; set; }

        [ForeignKey("FileGroup")]
        [Tag(TagEnum.Select, "required", "分组名称", 3, 20)]
        public int FileGroupID { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [MaxLength(10)]
        [Tag(TagEnum.Text, "required", "分组名称", 3, 20)]
        public string Name { get; set; }

        public virtual FileGroup FileGroup { get; set; }

        public virtual ICollection<EmployeeFile> EmployeeFiles { get; set; }

    }
}
